﻿using System.Web.Http;
using Sportsbook.Domain.Models.Bets;
using Sportsbook.Domain.Repositories;

namespace Sportsbook.Website.Areas.Api.Controllers
{
    public class BetsController : ApiController
    {
        private readonly IBetsRepository repository;

        public BetsController(IBetsRepository repository)
        {
            this.repository = repository;
        }

        public void Post(IBet model)
        {
            repository.Save(model, "cesarbmx");
        }
    }
}
